package util;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;

public class Test {

    /**
     * @param args
     */
    public static void main(String[] args) {
        try {
            Connection con = DBConnection.getConn();
            Statement st = con.createStatement();
            ResultSet rs = st.executeQuery("Select count(*) from tab");
            rs.next();
            do {
                System.out.println(rs.getInt(1));
            } while (rs.next());
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
